﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MongoDB.Model
{
    /// <summary>
    /// 任务执行记录Model
    /// </summary>
    public class Mongo_TaskRecordModel
    {
        /// <summary>
        /// Id
        /// </summary>
        [BsonId]
        public ObjectId ID { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// 任务组名
        /// </summary>
        public string GroupName { get; set; }

        /// <summary>
        /// 请求地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 请求方式
        /// </summary>
        public string Method { get; set; }

        /// <summary>
        /// 请求内容
        /// </summary>
        public string RequestBody { get; set; }

        /// <summary>
        /// 返回内容
        /// </summary>
        public string ResponseBody { get; set; }

        /// <summary>
        /// 执行所用时间
        /// </summary>
        public decimal Second { get; set; }

        /// <summary>
        /// 调用时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
